//
//  NSDrawerExt.m
//  WebClipper
//
//  Created by Daniel Braun on 24/02/07.
//  Copyright 2007Daniel Braun http://page-appart.net, http://braun.daniel.free.fr  All rights reserved.
//

#import "NSDrawerExt.h"



@implementation NSDrawer (DBExt) 

- (void) setOpenstate:(BOOL) s
{
	if (s) [self open];
	else [self close];
}
- (BOOL) openstate
{
	switch ([self state]) {
		case NSDrawerClosedState:
		case NSDrawerClosingState:
			return NO;
		case NSDrawerOpeningState:
		case NSDrawerOpenState:
			return YES;
		default:
			return NO;
	}
}


@end
